import redis


class Config:
    DEBUG = True
    SECRET_KEY = "EjpNVSNQTyGi1VvWECj9TvC/+kq3oujee2kTfQUs8yCM6xX9Yjq52v54g+HVoknA"
    SQLALCHEMY_DATABASE_URI = "mysql://root:mysql@127.0.0.1:3306/python7"
    SQLALCHEMY_TRACK_MODIFICATIONS = True
    SESSION_TYPE = "redis"
    SESSION_USE_SIGNER = True
    SESSION_REDIS = redis.StrictRedis(host='127.0.0.1', port=6379)
    PERMANENT_SESSION_LIFETIME = 86400


class Deveconfig(Config):
    # 开发者模式
    pass


class Prodconfgi(Config):
    DEBUG = False
    # 上线模式


config = {
    'Deveconfig': Deveconfig,
    'Prodconfgi': Prodconfgi
}
